package com.ruoyi.flow.service.flowable;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.flowable.task.api.Task;
import org.flowable.task.api.history.HistoricTaskInstance;
import org.flowable.task.service.impl.persistence.entity.TaskEntity;

import java.util.Map;

/**
 * @title:
 * @author: bruce.liu
 * @since: 2024/10/23 14:42
 */
public interface FlowableTaskService {
    IPage<Task> runPage(IPage<Task> page, String userCode);

    IPage<HistoricTaskInstance> hisPage(IPage<Task> page, String userCode);

    void complete(String taskId, Map<String, Object> variables);
}
